"""Effcient_OA_System URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from .views import *
urlpatterns = [
    path('admin/', admin.site.urls),
    path('process',ProcessAPIView.as_view()),# 流程实列
    path('process/<int:pk>',ProcessAPI.as_view()),
    path('processvague',ProcessVague.as_view()),
    path('approver/<int:pk>',ApproverAPIView.as_view()), # 获取审批人
    path('userprocess',UserProcessAPIView.as_view()),# 代办事项
    path('userprocess/<int:pk>',UserPorcessAPI.as_view()),# 驳回
    path('userpro/<int:pk>',UserPorcess.as_view()),# 同意
    path('userprovague',UserProcessVague.as_view()),# 代办事项模糊查询
    path('userprocessfini',UserProcessFinished.as_view()),# 已办事项
    path('userprocessfini/<int:pk>',UserProcessFinishedAPI.as_view()),
    path('userprocessfinivague',UserProcessFinishedVague.as_view()),
]
